<?php


// $num = pow(10,18);
// $num1 =pow(10,16);

// var_dump(($num+$num1)/pow(10,18));

// exit;

$user ="0xe4C89B9Fcab29c5BEe3971b698cca4528f2644e2";

// $user ="0x0fb399f3131706941C291178d17808a2e996a97D";

$user ="0xA02BBdD8F58d26D06482b2966a0F40498dEf4729";

$user = "0xf132dEf893A6B67717f104273E789b1bcb81b48C";

$user = "0xc528c28FEC0A90C083328BC45f587eE215760A0F";

$key = "JI4KGHKZ5ZUA9IB9WM2AGMZ13X63J1XU8A";

$url = "http://api.etherscan.io/api?module=account&action=txlist&address=".$user."&startblock=0&endblock=99999999&page=1&offset=50&sort=desc&apikey=".$key;



// $data = file_get_contents($url);

// var_dump($data);exit;

// var_dump($url);exit;
//初始化
$curl = curl_init();
//设置抓取的url
curl_setopt($curl, CURLOPT_URL, $url);
//设置头文件的信息作为数据流输出
curl_setopt($curl, CURLOPT_HEADER, 0);
//设置获取的信息以文件流的形式返回，而不是直接输出。
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
//执行命令
$data = curl_exec($curl);
//关闭URL请求
curl_close($curl);
//显示获得的数据
var_dump(json_decode($data,true));